//
//  Paging.h
//  Pagination
//
//  Created by XMac on 2018/11/15.
//  Copyright © 2018 XMac. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PagingProcess.h"
/**
 * 这个分页工具 要分离网络请求 分离分页ui实现  还有数据刷新的ui
 **/

NS_ASSUME_NONNULL_BEGIN

@interface Paging : NSObject

-(instancetype)initWithDefaultPage:(int)page withDefaultSize:(int)size withProcess:(id<PagingProcess>)process;

-(id)getProcessSuccess;
-(id)getProcessFailure;

-(void)reset;

-(int)nextPage;

-(int)pageSize;

@end

NS_ASSUME_NONNULL_END
